/**
 * Copyright (c) 2010-2011 julewa.com.  
 * All rights reserved. 
 * 
 * @author Huang Benhua
 * @date 2011-7-20
 * 
**/
package com.julewa.db.checkers;

import java.util.regex.Pattern;

public class PatternMatcher {
	private Pattern p = null;
	public PatternMatcher(String pattern){
		p = Pattern.compile(pattern);
	}
	public boolean match(CharSequence str){
		return p.matcher(str).find();
	}
	public String toString(){
		return p.pattern();
	}

}
